<?php
$this->load->view('common/header',
array(
  'title' =>'通知列表'
));
$this->load->view('common/sliderbar',
array(
  'menu'   => 'shop',
  'option' => 'my_callback'
));
 ?>
<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<ul class="breadcrumb">
			<li>
				<a>我的回访</a>
			</li>
		</ul>
	</div>
		<div style="padding-top:5px;padding-left:5px;">
			<form class="form-search" style="width:300px;display:block;float:left" action="/shop/my_callback" post="get">
				<div class="input-group">
					<input type="text" class="form-control search-query" name="search" placeholder="请输入关键字" <?php if(!empty($_GET[ 'search'])){echo 'value="'.$_GET[ 'search']. '"';} ?> />
					<span class="input-group-btn">
          <input type="submit"  class="btn btn-info btn-sm" value="搜索">
					</span>
				</div>
			</form>
			<!-- <a href="/shop/shopexcel">导出所有店铺信息</a> -->
			<div style="float:right;display:inline-block;margin-right:20px;">
				<ul class="pagination" style="margin:0px;">
					<?php echo $this->pagination->create_links() ?>
				</ul>
			</div>
		</div>
		<div class="row">
			<div class="table-responsive">
				<table id="sample-table-1" class="table table-striped table-bordered table-hover">
					<thead>
						<tr>
							<th class="center" style="width:200px;">店名</th>
							<th class="center">回访内容</th>
							<th class="center" style="width:150px;">添加时间</th>
							<th class="center" style="width:110px;">操作</th>
						</tr>
					</thead>
					<tbody>
						<?php foreach ($callback as $callback): ?>
						<tr>
							<td class="J_shopname center"><?php echo $callback['shopname'] ?></td>
							<td class="J_callback"><?php echo $callback['shopcallback'] ?></td>
							<td class="J_addtime"><?php echo $callback['addtime'] ?></td>
							<td class="center"><a data-shopid="<?php echo $callback['id'] ?>" href="#" class="updateShopCallback">修改</a>&nbsp;<a data-shopid="<?php echo $callback['id'] ?>" href="javascript:;" class="deleteShopCallback">删除</a></td>
            </tr>
						<?php endforeach; ?>
					</tbody>
				</table>
			</div>
		</div>
</div>
<script type="text/javascript" src="../public/js/shop/mycallback.js"></script>
<?php
$this->load->view('common/footer');
?>
